using System.Collections;
using System.Collections.Generic;
using UnityEngine;

//自动生成于：2021/6/16 15:02:27
namespace StarForce.Hotfix
{
    public partial class LoginPage : HotfixUGuiForm
    {
        public override void OnInit(StarForce.HotfixUGuiForm uiFormLogic, object userdata)
        {
            base.OnInit(uiFormLogic, userdata);

            GetBindComponents(uiFormLogic.gameObject);

            m_Btn_Login.onClick.AddListener((() =>
            {
//				GameEntry.UI.OpenUIForm((int) HotfixUIFormId.MainPage);
//                GameEntry.UI.OpenDialog(new DialogParams("测试测试", "关闭", null));
//				Close();
                HotfixGameEntry.Event.Fire(this, ReferencePool.Acquire<GameStartEventArgs>().Fill(GameMode.Normal));
            }));
        }

        public override void OnOpen(object userdata)
        {
            base.OnOpen(userdata);
            GameEntry.BuiltinData.DestroyUpdateResourcePage();
        }
    }
}